{ *** cef_load_handler_capi.h  *** }

    PCefLoadHandler = ^TCefLoadHandler;

    // Implement this structure to handle events related to browser load status. The
    // functions of this structure will be called on the UI thread.
    TCefLoadHandler = record
        // Base structure.
        base: TCefBase;

        // Called when the loading state has changed. This callback will be executed
        // twice -- once when loading is initiated either programmatically or by user
        // action, and once when loading is terminated due to completion, cancellation
        // of failure.
        ///
        //void (CEF_CALLBACK *on_loading_state_change)(struct _cef_load_handler_t* self,
        //    struct _cef_browser_t* browser, int isLoading, int canGoBack,
        //    int canGoForward);
        on_loading_state_change: procedure(
            self: PCefLoadHandler;
            browser: PCefBrowser;
            isLoading: Integer;
            cnGoBack: Integer;
            canGoForward: Integer); cconv;

        // Called when the browser begins loading a frame. The |frame| value will
        // never be NULL -- call the is_main() function to check if this frame is the
        // main frame. Multiple frames may be loading at the same time. Sub-frames may
        // start or continue loading after the main frame load has ended. This
        // function may not be called for a particular frame if the load request for
        // that frame fails. For notification of overall browser load status use
        // OnLoadingStateChange instead.
        on_load_start: procedure(
            self: PCefLoadHandler;
            browser: PCefBrowser;
            frame: PCefFrame); cconv;

        // Called when the browser is done loading a frame. The |frame| value will
        // never be NULL -- call the is_main() function to check if this frame is the
        // main frame. Multiple frames may be loading at the same time. Sub-frames may
        // start or continue loading after the main frame load has ended. This
        // function will always be called for all frames irrespective of whether the
        // request completes successfully.
        on_load_end: procedure(
            self: PCefLoadHandler;
            browser: PCefBrowser;
            frame: PCefFrame;
            httpStatusCode: Integer); cconv;

        // Called when the resource load for a navigation fails or is canceled.
        // |errorCode| is the error code number, |errorText| is the error text and
        // |failedUrl| is the URL that failed to load. See net\base\net_error_list.h
        // for complete descriptions of the error codes.
        on_load_error: procedure(
            self: PCefLoadHandler;
            browser: PCefBrowser;
            frame: PCefFrame;
            errorCode: TCefErrorCode;
            const errorText, failedUrl: PCefString); cconv;
    end;


